package com.volcreate.week1;

import java.math.BigInteger;
import java.util.Scanner;

/**
 * @author zxc
 * @date 2020/9/20
 */
public class Main3 {
    /**
     * 42846280183517070527831839425882145521227251250327
     * 55121603546981200581762165212827652751691296897789
     * @param args
     */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        BigInteger sum = new BigInteger("0");
        while (true){ //等同于!=EOF
            String s = scanner.nextLine();
            if (s.equalsIgnoreCase("e")){
                System.out.println(sum.toString());
                break;
            }
            BigInteger a = new BigInteger(s);
            sum = sum.add(a);
        }
        scanner.close();
    }
}
